package entity;

/**
 * 优惠券类
 */
public class Coupon {
    private int couponID;//编号
    private double discountprice;//订单总支付金额
    private double  preferentialprice;//能够减免的金额

    public int getCouponID() {
        return couponID;
    }

    public void setCouponID(int couponID) {
        this.couponID = couponID;
    }

    public double getDiscountprice() {
        return discountprice;
    }

    public void setDiscountprice(double discountprice) {
        this.discountprice = discountprice;
    }

    public double getPreferentialprice() {
        return preferentialprice;
    }

    public void setPreferentialprice(double preferentialprice) {
        this.preferentialprice = preferentialprice;
    }

    @Override
    public String toString() {
        return "Coupon{" +
                "couponID=" + couponID +
                ", discountprice=" + discountprice +
                ", preferentialprice=" + preferentialprice +
                '}';
    }
}
